//引入axios
import axios from "axios";

//创建ajax实列并且暴露出去给其他的界面使用
export const instance = axios.create({
	baseURL: "http://47.96.154.185:3701",
	timeout: 1000,
	//设置请求头，每次发送ajax都会带上token
	headers: { Authorization: "Bearer " + sessionStorage.getItem("token") },
});
